package org.jeecg.modules.goods.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 产品信息
 * @Author: jeecg-boot
 * @Date: 2025-06-07
 * @Version: V1.0
 */
@Data
@TableName("ebiz_goods")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "网站产品信息")
public class EbizGoods {

    /** 主键id */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键id")
    private String id;
    /** 创建人 */
    @Excel(name = "创建人", width = 15)
    @Schema(description = "创建人")
    private String createBy;
    /** 创建时间 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;
    /** 更新人 */
    @Excel(name = "更新人", width = 15)
    @Schema(description = "更新人")
    private String updateBy;
    /** 更新时间 */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;
    /** 产品编码 */
    @Excel(name = "产品编码", width = 15)
    @Schema(description = "产品编码")
    private String goodsCode;
    /** 产品简图 */
    @Excel(name = "产品简图", width = 15)
    @Schema(description = "产品简图")
    private String coverPic;
    /** 产品图集 */
    @Excel(name = "产品图集", width = 15)
    @Schema(description = "产品图集")
    private String pics;
}
